projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35172cf
)
SPL: fix printing of image name
author
André Draszik
<
[email protected]
>
Tue, 3 Oct 2017 15:55:50 +0000
(16:55 +0100)
committer
Simon Glass
<
[email protected]
>
Fri, 17 Nov 2017 02:10:25 +0000
(19:10 -0700)
The maximum length of the name of the image is
obviously not sizeof(), which is just the
length of a pointer, but IH_NMLEN.
fixes:
62cf11c0921a90c6bd62344f4bc069668e6c698c
("SPL: Limit image name print length")
Signed-off-by: André Draszik <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
common/spl/spl.c
patch
|
blob
|
history
diff --git
a/common/spl/spl.c
b/common/spl/spl.c
index aaddddd99580221211b85ddf5b05bee5ccbb257d..d232f67ba95562ca3d334500ca60bb696011145a 100644
(file)
--- a/
common/spl/spl.c
+++ b/
common/spl/spl.c
@@
-154,7
+154,7
@@
int spl_parse_image_header(struct spl_image_info *spl_image,
spl_image->os = image_get_os(header);
spl_image->name = image_get_name(header);
debug("spl: payload image: %.*s load addr: 0x%lx size: %d\n",
-
(int)sizeof(spl_image->name)
, spl_image->name,
+
IH_NMLEN
, spl_image->name,
spl_image->load_addr, spl_image->size);
#else
/* LEGACY image not supported */